
//
//  AppDelegate.h
//  GC_OC
//
//  Created by 曾 on 2022/1/16.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "ObjectAFNetWorking.h"
#import "LinkerModel.h"
#import "SUPlayerManager.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, AVAudioPlayerDelegate>
@property (nonatomic, strong) UIWindow * window;
@property (nonatomic, strong)ObjectAFNetWorking* objectAFNet;
@property (nonatomic, assign) BOOL allowOrentitaionRotation;
@property (nonatomic, strong) AVAudioPlayer * audioPlayer;
@property (nonatomic, strong) AFNetworkReachabilityManager * reachabilityManager;
@property(nonatomic, strong) UIView *toolBarView;
@property (nonatomic, copy) void(^ audioPlayFinish)(void);
@property (nonatomic, copy) void(^ audioPlayPause)(void);
@property(nonatomic, strong) NSMutableArray *dataSource;
@property (nonatomic, copy) void(^ convertCategoryBlock)(LinkerModel * obj);

- (BOOL)isPlaying;

+ (instancetype)shared;
- (void)stopAudioPlay;
- (void)playAudioSound:(NSString *) url;
- (void)pauseAudioPlay;
- (void)playAudio;
- (void)refreshToolBarTitle:(LinkerModel *) fObj sObj:(LinkerModel *) sObj tObj:(LinkerModel *) tObj;



@property (nonatomic, strong) SUPlayerManager * player;
+ (AppDelegate *)delegate;
- (void)configNowPlayingCenter;

@end

